<?php

namespace App\Services\Api;

/**
 *资产合作-找项目
 */
class CMS10006
{
    public $apiCode = 'CMS#10006';
    public $pageNo = 1;
    public $pageSize = 10;
    public $projectType = '';
    public $finaLimit = '';
    public $finaTerm = '';
    public $finaCost = '';

    public function getInitPostData($postData)
    {
        return [
            'pageNo' => $this->getPageNo(@$postData['pageNo']),
            'pageSize' => $this->getPageSize(@$postData['pageSize']),
            'serverType' => $this->getProjectType(@$postData['serverType']),
            'financingLimitType' => $this->getFinaLimit(@$postData['financingLimitType']),
            'financingTermType' => $this->getFinaTerm(@$postData['financingTermType']),
            'financingCostType' => $this->getFinaCost(@$postData['financingCostType']),
        ];
    }

    public function getPageNo($pageNo = '')
    {
        return $pageNo ? $pageNo : $this->pageNo;
    }

    public function getPageSize($pageSize = '')
    {
        return $pageSize ? $pageSize : $this->pageSize;
    }

    public function getProjectType($projectType = '')
    {
        return $projectType ? $projectType : $this->projectType;
    }
    public function getFinaLimit($finaLimit = '')
    {
        return $finaLimit ? $finaLimit : $this->finaLimit;
    }
    public function getFinaTerm($finaTerm = '')
    {
        return $finaTerm ? $finaTerm : $this->finaTerm;
    }
    public function getFinaCost($finaCost = '')
    {
        return $finaCost ? $finaCost : $this->finaCost;
    }

    public function getInitApiCode()
    {
        return $this->apiCode;
    }

}
